package com.base.service.impl;

import com.base.mapper.voipmapper.SelfShopAddressMapper;
import com.base.po.voip.SelfShopAddress;
import com.base.po.voip.SelfShopAddressExample;
import com.base.service.SelfShopAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("selfShopAddressService")
public class SelfShopAddressServiceImpl implements SelfShopAddressService {

    @Autowired
    private SelfShopAddressMapper selfShopAddressMapper;

    @Override
    public int countByExample(SelfShopAddressExample example) {
        return selfShopAddressMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(SelfShopAddressExample example) {
        return selfShopAddressMapper.deleteByExample(example);
    }

    @Override
    public int insert(SelfShopAddress record) {
        return selfShopAddressMapper.insert(record);
    }

    @Override
    public int insertSelective(SelfShopAddress record) {
        return selfShopAddressMapper.insert(record);
    }

    @Override
    public List<SelfShopAddress> selectByExample(SelfShopAddressExample example) {
        return selfShopAddressMapper.selectByExample(example);
    }

    @Override
    public List<SelfShopAddress> selectAllByUserID(String userid) {
        return selfShopAddressMapper.selectAllByUserID(userid);
    }

    @Override
    public SelfShopAddress selectByPrimaryKey(String id) {
        return selfShopAddressMapper.selectByPrimaryKey(id);
    }

    @Override
    public SelfShopAddress selectByUserID(String userid) {
        return selfShopAddressMapper.selectByUserID(userid);
    }

    @Override
    public int updateByExampleSelective(SelfShopAddress record, SelfShopAddressExample example) {
        return selfShopAddressMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(SelfShopAddress record, SelfShopAddressExample example) {
        return selfShopAddressMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(SelfShopAddress record) {
        return selfShopAddressMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByUserId(String userid) {
        return selfShopAddressMapper.updateByUserId(userid);
    }
}
